Skip to content

Feat/passkeys darwin swiftpm support#235

Closed
Dopeamin wants to merge 3 commits into
corbado:mainfrom
Dopeamin:feat/passkeys-darwin-swiftpm-support
Closed

Feat/passkeys darwin swiftpm support#235
Dopeamin wants to merge 3 commits into
corbado:mainfrom
Dopeamin:feat/passkeys-darwin-swiftpm-support

Conversation

@Dopeamin
Copy link
Copy Markdown
Contributor

@Dopeamin Dopeamin commented Mar 29, 2026

This PR adds Swift Package Manager (SwiftPM) support for the Apple federated implementation of passkeys, while preserving existing CocoaPods compatibility.

Flutter is migrating plugin integration toward SwiftPM, and this change prepares the plugin for that transition.

Changes

packages/passkeys/passkeys_darwin

  • Added Package.swift to enable SwiftPM integration for iOS/macOS.
  • Bumped version:
    • 0.3.00.4.0
  • Updated changelog:
    • Added 0.4.0 entry for SwiftPM support.

packages/passkeys/passkeys

  • Updated dependency:
    • passkeys_darwin: ^0.4.0
  • Updated changelog:
    • Added 2.19.0 entry noting darwin dependency bump for SwiftPM support.

Notes

  • CocoaPods support remains intact (backward compatibility).
  • Runtime behavior for iOS versions below passkey availability is unchanged (feature remains runtime-gated and reports unsupported where applicable).

@kopy
Copy link
Copy Markdown
Contributor

kopy commented May 9, 2026

Superseded by #239. Thanks @Dopeamin.

@kopy kopy closed this May 9, 2026
kopy added a commit that referenced this pull request May 9, 2026
Adds Package.swift at the Flutter-conventional path so Flutter's plugin
tooling discovers it (FlutterGeneratedPluginSwiftPackage now includes
passkeys_darwin and the plugin is consumed via SwiftPM rather than
falling back to CocoaPods).

- Package.swift at darwin/passkeys_darwin/ (matches shared_preferences_foundation)
- Swift sources moved to darwin/passkeys_darwin/Sources/passkeys_darwin/
- Podspec source_files path and deployment targets aligned with
  Package.swift (iOS 13.0, macOS 10.15); @available runtime gating
  unchanged
- .gitignore for SwiftPM build artifacts

Verified on iOS and macOS: passkeys_darwin appears in the generated
SwiftPM graph and drops out of Podfile.lock.

Closes #234. Closes #235.
kopy added a commit that referenced this pull request May 9, 2026
Adds Package.swift at the Flutter-conventional path so Flutter's plugin
tooling discovers it (FlutterGeneratedPluginSwiftPackage now includes
passkeys_darwin and the plugin is consumed via SwiftPM rather than
falling back to CocoaPods).

- Package.swift at darwin/passkeys_darwin/ (matches shared_preferences_foundation)
- Swift sources moved to darwin/passkeys_darwin/Sources/passkeys_darwin/
- Podspec source_files path and deployment targets aligned with
  Package.swift (iOS 13.0, macOS 10.15); @available runtime gating
  unchanged
- .gitignore for SwiftPM build artifacts
- CLAUDE.md note documenting dual-build (SwiftPM + CocoaPods) convention

Verified on iOS and macOS in both modes: with SwiftPM enabled,
passkeys_darwin appears in the generated SwiftPM graph and drops out of
Podfile.lock; with SwiftPM disabled, the updated podspec source_files
path resolves and pod install pulls the plugin as before.

Closes #234. Closes #235.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants